﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Dal.Migrations
{
    public partial class gregte : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "EroolTableInfor",
                columns: table => new
                {
                    EId = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    EName = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    EPassword = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    EPhone = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    ESex = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    EidentityCard = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    Ereal = table.Column<string>(type: "nvarchar(max)", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_EroolTableInfor", x => x.EId);
                });

            migrationBuilder.CreateTable(
                name: "LoginTableInfor",
                columns: table => new
                {
                    LId = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    LName = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    LPassword = table.Column<string>(type: "nvarchar(max)", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_LoginTableInfor", x => x.LId);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "EroolTableInfor");

            migrationBuilder.DropTable(
                name: "LoginTableInfor");
        }
    }
}
